package top.chmin.project.cloud.sys.dict.data;

import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;
import top.chmin.project.cloud.common.Page;

import java.util.List;



/**
 * chmin
 * 2024-01-26 14:02:41
 * cloud-code
 */
@RestController
public class DictDataController implements
/* append $controllerSelectOptionRestAppender$ */
        DictDataSaveRest,
        DictDataSelectRest,
        DictDataUpdateRest,
        DictDataDeleteRest,
        DictDataPageRest,
        DictDataSelectListByType {

    @Resource
    private DictDataService dictDataService;

    @Override
    public int save(DictDataSaveRest.P p) {
        return dictDataService.save(p);
    }

    @Override
    public DictDataSelectRest.R select(DictDataSelectRest.P p) {
        return dictDataService.select(p);
    }

    @Override
    public int update(DictDataUpdateRest.P p) {
        return dictDataService.update(p);
    }

    @Override
    public int delete(DictDataDeleteRest.P p) {
        return dictDataService.delete(p);
    }

    @Override
    public Page<DictDataPageRest.R> page(DictDataPageRest.P p) {
        return dictDataService.page(p);
    }
    /* append $controllerSelectOptionMethodAppender$ */

    @Override
    public List<DictDataSelectListByType.R> selectListByType(DictDataSelectListByType.P p) {
        return dictDataService.selectListByType(p);
    }
}
